<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		var score1=Number(prompt('请输入您的成绩'));
		var score2=Number(prompt('请输入您的成绩'));
		if(score1<0||score2<0||score1>100||score2>100){console.log('请输入正确的成绩')}
		 else if (score1>score2) {console.log(score1)
		 	                 console.log(score1-score2)
		                     }
							else{console.log(score2)
								 console.log(score2-score1)
							     }
		
	</script>
</head>
<body>
	
</body>
</html>